package com.example.common.event;

import lombok.Data;
import org.springframework.context.ApplicationEvent;

@Data
public class MessEvent extends ApplicationEvent {

    private Long postId;
    private Long fromUserId;
    private Long toUserId;

    private int type; //0: 评论事件，1.。。

    public MessEvent(Object source, int type) {
        super(source);
        this.type = type;
    }

}
